package com.steel.yfmall.cloud.assistant.goods.impl;

import com.steel.yfmall.cloud.assistant.goods.FrameworkContractRegionService;
import com.steel.yfmall.cloud.assistant.goods.mapper.FrameworkContractGoodsInfoMapper;
import com.steel.yfmall.cloud.assistant.goods.mapper.FrameworkContractRegionMapper;
import com.steel.yfmall.cloud.assistant.po.goods.FrameworkContractRegion;
import com.steel.yfmall.cloud.assistant.po.goods.FrameworkContractRegionExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class FrameworkContractRegionServiceImpl implements FrameworkContractRegionService {
    @Override
    public List<FrameworkContractRegion> selectByPrimaryKey(FrameworkContractRegionExample example) {
        return regionMapper.selectByExample(example);
    }

    @Override
    public int insert(FrameworkContractRegion info) {
        return regionMapper.insert(info);
    }

    @Override
    public int update(FrameworkContractRegion info) {
        return regionMapper.updateByPrimaryKey(info);
    }

    @Override
    public int delete(FrameworkContractRegionExample example) {
        return regionMapper.deleteByExample(example);
    }
    @Resource
    private FrameworkContractRegionMapper regionMapper;
}
